package com.yycx.module.bus.client.entity.hy;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yycx.common.mybatis.annotation.TableAlias;
import com.yycx.common.mybatis.base.entity.AbstractEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * 开票单位月额度明细
 *
 * @author flyme
 * @date 2023-09-14
 */
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("bus_invoiceunit_quota")
@TableAlias("biq")
@ApiModel(value = "BusInvoiceunitQuota对象", description = "开票单位月额度明细")
public class BusInvoiceunitQuota extends AbstractEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "invoiceUnitQuotaId", type = IdType.ASSIGN_ID)
    private Long invoiceUnitQuotaId;

    @ApiModelProperty(value = "开票单位ID")
    private Long invoiceUnitId;

    @ApiModelProperty(value = "年份")
    private Integer quotaYear;

    @ApiModelProperty(value = "月份")
    private String quotaMonth;

    @ApiModelProperty(value = "月总额度")
    private BigDecimal totalQuota;

    @ApiModelProperty(value = "已用额度")
    private BigDecimal useQuota;

    @ApiModelProperty(value = "剩余额度")
    private BigDecimal residueQuota;

    @ApiModelProperty(value = "最大额度")
    private BigDecimal maxQuota;

}
